package com.siants.util;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * Created by yanxin on 2017/7/11.
 */
public class PropertyCacheMap {
    private static Map<String,String> propertyCacheMap = new ConcurrentHashMap<String, String>();

    public static void setCache(String key, String obj){
        propertyCacheMap.put(key,obj);
    }

    public static String getCache(String key){
        return propertyCacheMap.get(key);
    }

    public static  void removeCache(String key){
        propertyCacheMap.remove(key);
    }

    public static void clear(){
        propertyCacheMap.clear();
    }

}
